# 插件注册
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager

db = SQLAlchemy()
login_manager = LoginManager()
login_manager.login_view = 'app.login'

def register_ext(app):
    db.init_app(app)
    login_manager.init_app(app)